package com.sheliduan.itlearning.web.model;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @author: 断舍离
 * @date: 2025/1/21 9:16
 * @description:
 **/
@Data
public class User {

    @NotNull
    private Integer id;

    @NotBlank(message = "username不能为空")
    private String username;

    @NotBlank(message = "password不能为空")
    private String password;

    private LocalDateTime createTime;
}
